import type { JoinType } from '@/model/job'
import {http} from '../utils/http'

// 岗位详情
export const getJobDetail = (id:string)=>{
	return http.get(`/classes/Job/${id}`)
}

// 岗位报名
export const postJoin = (data:JoinType)=>{
	return http.post(`/classes/Join`,data)
}

//查看报名状态
export const joinCheck = (userId:string,jobId:string)=>{
	return http.get(`/classes/Join`,{
		params:{
			where:{userId,jobId}
		}
	})
}
